package com.unhz.taigu.service;

import com.unhz.generator.pojo.DeliveryInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 王林恩
 * @Description:交货订单信息
 * @Date: Created in 上午 9:02 2018/2/1 0001
 * @Modified By:
 */
@Repository
public interface DeliveryInfoService {

    List<DeliveryInfo> findDeliveryInfoByDeliveryOrderId(Long deliveryOrderId);

    int addDeliveryInfo(DeliveryInfo deliveryInfo);

    int deleteDeliveryInfo(Long id);

    int updateDeliveryInfo(DeliveryInfo deliveryInfo);

    /**
     * 根据交货订单id查询
     * @param deliveryOrderId
     * @return
     */
    List<DeliveryInfo> selectByDeliveryOrderId(Long deliveryOrderId);

    /**
     * 逻辑删除交货订单数量
     * @param deliveryId
     */
    void deleteDeliveryOrderInfo(Long deliveryId);

    /**
     * 修改交货订单数量信息
     * @param deliveryInfo
     */
    void updateDeliveryOrderInfo(DeliveryInfo deliveryInfo);
}
